<script type="text/javascript">
window.addEvent('domready',function(){
	new FormCheck('formImages', {
		display : {
			errorsLocation : 1,
			showErrors : 1,
			addClassErrorToField : 1
		}
	});
});
</script>
<form id="formImages" name="formimages" enctype="multipart/form-data" method="post" action="<?php echo site_url(array('project','saveImages'))?>">
  <table bgcolor="#ccc" width="757" border="0" cellspacing="1" cellpadding="0">
   <tr><td>
   	 <table bgcolor="#fff" width="100%">
   	  <tr><td align="center">
   	   <table width="0" align="center" border="0" cellspacing="2" cellpadding="3">
     <tr>
      <td align="right" valign="top">Album :</td>
      <td valign="top">
        <select class="validate['required']" name="album" id="album">
        <option value=''>Album</option>
        <?php 
		foreach ($query->result() as $row):
			echo "<option value='$row->id_album'>$row->name</option>";
		endforeach;
		?>
       </select></td>
    </tr>
    <tr>
      <td align="right" valign="top">Name :</td>
      <td valign="top">
      <input class="validate['required']" type="text" name="name" id="name" ></td>
    </tr>
    <tr>
      <td align="right" valign="top">Images :</td>
      <td valign="top"><label for="images"></label>
      <input class="calidate['required']" type="file" name="images" id="images"></td>
    </tr>
    <tr>
      <td align="right" valign="top">Tag :</td>
      <td valign="top">
      <input class="validate['required']" type="text" name="tag" id="tag"></td>
    </tr>
    <tr>
      <td align="right" valign="top">Description :</td>
      <td valign="top">
      <textarea class="validate['required']" name="description" cols="30" rows="5" id="description"></textarea></td>
    </tr>
    <tr>
                  <td align="right" valign="top">&nbsp;</td>
                  <td align="right" valign="top">
<table width="0" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><input class="uiButton uiSave" type="submit" name="button" id="button" value="Save" /></td>
                      <td><a href="javascript: history.go(-1)" class="uiButton uiAdd">cancel</a></td>
                    </tr>
                  </table></td>
                </tr>
  </table>
   	  </td></tr>
   	 </table>
   </td></tr>
  </table>
</form>
